package com.educate.common.dto;

import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @author yjj
 * @date 2021/12/20
 * @Description 编辑课程 返回参数
 */
@Getter
@Setter
public class EditCourseDto {
    @NotBlank(message = "课程ID不能为空")
    private String courseId;
    @NotBlank(message = "标题不能为空")
    private String title;
    @NotBlank(message = "类别不能为空")
    private String type;
    @NotBlank(message = "封面不能为空")
    private String cover;
    private String summary;
    private String outline;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
}
